class GoodsShcema {
    constructor(goods_name, goods_img, goods_price, goods_title, user_id, user_name, create_time, goods_type, goods_description, contact_information = '13888889999', isshare = 0) {
        this.goods_name = goods_name;
        this.goods_img = goods_img;
        this.goods_price = goods_price;
        this.goods_title = goods_title;
        this.user_id = user_id;
        this.user_name = user_name;
        this.create_time = create_time;
        this.goods_type = goods_type;
        this.goods_description = goods_description;
        this.contact_information = contact_information;
        this.isshare = isshare;
    }
    static goods(goods_name, goods_img, goods_price, goods_title, user_id = '1', user_name, create_time, goods_type, goods_description, contact_information = '13888889999', isshare = 0) {
        return new GoodsShcema(goods_name, goods_img, goods_price, goods_title, user_id, user_name, create_time, goods_type, goods_description, contact_information, isshare)
    }
}
class UserShcma {
    //未完成
    /**
     * 
     * # id, username, password, wxId, real_name, gender, address, phone, role, age, user_status, update_time, create_time, is_deleted
'1', '奥里给！！！', 'password', 'RNO2', '待补充', '女', '虎林市', '17883356784', '0', '42', '0', '2022-10-27 18:31:19', '2022-10-19 21:10:17', '0'

     * 
     * */
    constructor(id, username, password, wxId, real_name, gender, address, phone, role, age, user_status, update_time, create_time, is_deleted) {
        this.username = username;
        this.password = password;
        this.wxId = wxId;
        this.real_name = real_name;
        this.gender = gender;
        this.address = address;
        this.phone = phone;
        this.role = role;
        this.age = age;
        this.user_status = user_status;
        this.update_time = update_time;
        this.create_time = create_time;
        this.is_deleted = is_deleted;
    }
}
class OrderShcema {
    //未完成
    /**
     * # id, customer_id, user_id, state, pay_time, pay_type, create_time, update_time, is_deleted, remark
'221018002', 'AztXnEF3TPTf6MoHNo96', '4', '0', NULL, '小程序唤起', '2022-10-19 21:28:41', '2022-10-19 21:28:41', '0', '正常支付'

     */
    constructor(id, customer_id, user_id, state, pay_time, pay_type, create_time, update_time, is_deleted, remark) {
        this.customer_id = customer_id;
        this.user_id = user_id;
        this.state = state;
        this.pay_time = pay_time;
        this.pay_type = pay_type;
        this.create_time = create_time;
        this.update_time = update_time;
        this.is_deleted = is_deleted;
        this.remark = remark


    }
}

module.exports = {
    GoodsShcema, UserShcma, OrderShcema
}